package com.ruoyi.system.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.ruoyi.common.annotation.DataColumn;
import com.ruoyi.common.annotation.DataPermission;
import com.ruoyi.common.core.domain.entity.SysDept;
import com.ruoyi.common.core.mapper.BaseMapperPlus;
import com.ruoyi.system.domain.HrPositionTemp;
import com.ruoyi.system.domain.OrUpdateExternalUser;
import com.ruoyi.system.domain.REQUESTINFO;
import com.ruoyi.system.domain.addOrUpdateOrganization;
import com.ruoyi.system.domain.bank.*;
import com.ruoyi.system.domain.bo.*;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 部门管理 数据层
 *
 * @author Lion Li
 */

public interface SysDeptMapper extends BaseMapperPlus<SysDeptMapper, SysDept, SysDept> {

    /**
     * 查询部门管理数据
     *
     * @param queryWrapper 查询条件
     * @return 部门信息集合
     */
    @DataPermission({
        @DataColumn(key = "deptName", value = "dept_id")
    })
    List<SysDept> selectDeptList(@Param(Constants.WRAPPER) Wrapper<SysDept> queryWrapper);

    /**
     * 根据角色ID查询部门树信息
     *
     * @param roleId            角色ID
     * @param deptCheckStrictly 部门树选择项是否关联显示
     * @return 选中部门列表
     */
    List<Long> selectDeptListByRoleId(@Param("roleId") Long roleId, @Param("deptCheckStrictly") boolean deptCheckStrictly);


    void add(@Param("json") String json);



    List<REQUESTINFO> select();

    int GlTempEmployeeUpdate(@Param("Result") String Result,@Param("Id") String Id,@Param("SendDate") String SendDate);

    int GlAddOrUpdateOrganizationUpdate(@Param("DeptCode")String DeptCode,@Param("SendDate") String SendDate,@Param("Result") String Result);


    List<OrUpdateExternalUser>addOrUpdateExternalUser1();

    int OrUpdateExternalUserUpdate(String Complete);


    List<HrPositionTemp>selectHrPositionTemp();

    List<addOrUpdateOrganization>addOrUpdateOrganization();

    int updateSelectHrPositionTemp(@Param("PositionCode") String PositionCode,@Param("SendDate") String SendDate,@Param("Result") String Result);



    Map addOrUpdateExternalUser();

    Map selectAdd();

    int insertSyWorkstationLoginMapper(SyWorkstationLogin syWorkstationLogin);

    int updateSySupplier(@Param("MDG") String MDG,@Param("TaxId") String TaxId);

    int insertSySupplier(Map<String,Object> insertClientCallBackBo);

    int getByClientCallBackBo(@Param("TaxId") String TaxId);

    int updateSysAPiDo(Map<String,Object>sysAPiDo);

//    String client();

    List<ErpMdgCustomer>getListErpMdgCustomer();

    int updateErpMdgCustomerUpload(Map<String,Object>CompleteTime);

    int updateErpMdg(String RetCode);

    int insertErpMdg(ErpMdgCustomer erpMdgCustomer);

    int getByRetCode(@Param("RetCode") String RetCode);

    int insertMDG(GlCustomer  glCustomer);

    int insertSySupplier(@Param("Supplier") String Supplier,@Param("TaxId")String TaxId,@Param("Active")String Active,@Param("InsertTime")String InsertTime,@Param("MDG")String MDG,@Param("Mail")String Mail,@Param("Phone")String Phone,@Param("Address")String Address,@Param("Contact")String Contact);


    int insertBank(SysBank sysBank);


    String selectDescription(String Code,String Description);


    int  insertBankCard(BankCreditCard bankCreditCard);

    int deleteBank(String BankTrxCode);


    int deleteBankCard(String Code);

    int updateBankCard(@Param("VoucherNo")String VoucherNo,@Param("BankTrxCode")String BankTrxCode);

    int updateBankReam(@Param("Remark")String Remark,@Param("BankTrxCode")String BankTrxCode);

    BankCreditCard getBankCreditCard(@Param("MISNO")String MISNO);



    List<rvPaymentType>getrvPaymentTypeAll();


    List<FtTransactionCode>getFtTransactionCodeAll();

    //查询BankTrxCode添加*号
    SysBank getSysRvBankCreditCard(@Param("BankTrxCode") String BankTrxCode);


    //新增操作日志接口
    int InsertSyUserLog(SyUserLog syUserLog);












}
